/**
 * Author:           BeiYuu
 * Contact:          beiyuu.com
 * Update By:        Alfred Sun
 */

/* 重置浏览器CSS */
html{color:#000;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
body,button,input,select,textarea{font-size:12px/1.5;}
input,select,textarea{font-size:100%;}
table{border-collapse:collapse;border-spacing:0;}
th{text-align:inherit;}
fieldset,img,a img{border:0;}
iframe{display:block;}
abbr,acronym{border:0;font-variant:normal;}
del{text-decoration:line-through;}
address,caption,cite,code,dfn,em,th,var {font-style:normal;font-weight:500;}
ol,ul {list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500;}
q:before,q:after {content:'';}
sup{vertical-align:text-top;}
sub{vertical-align:text-bottom;}

/* Together with Markdown */
em{
	font-style:italic
}
hr{
	border:0;
	border-bottom:1px dashed #cfcfcf;
	margin:30px 0;
}
blockquote{
	margin:0 25px 25px;
	padding:15px 15px;
	border-left:10px solid #eee;
	border-color:#D6DBDF;
	background:none repeat scroll 0 0 rgba(102,128,153,.05);
	/*border-color:#333;
	background:none repeat scroll 0 0 rgba(51,51,51,.5);*/
}
blockquote p, .entry blockquote ul{
	margin-top: auto;
	margin-bottom: auto;
}
sup{
	top: -8px;
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
	color: #4A75B5;
}
sup:before{content: "[";}
sup:after{content: "]";}
.footnotes{color:#888;font-size:14px;}
.footnotes ol li{margin:auto !important;}
.footnotes p{margin:auto;}
table{
	max-width:100%;
	width:90%;
	margin:25px auto;
	background-color:transparent;
	border-collapse:collapse;
	border-spacing:0;
	
	border:1px solid #ddd;
	border-collapse:separate;
	*border-collapse:collapse;
	border-left:0;
	-webkit-border-radius:4px;
	-moz-border-radius:4px;
	border-radius:4px;
}
table th,table td{
	padding:8px;
	line-height:20px;
	text-align:left;
	vertical-align:top;
	border-top:1px solid #ddd;
	border-left:1px solid #ddd;
}
table th{
	font-weight:700
}
table thead th{
	vertical-align:bottom
}
table>tbody>tr:nth-child(2n+1)>td,table>tbody>tr:nth-child(2n+1)>th{
	background-color:rgba(102,128,153,.05)
}

/*.table-striped-black tbody>tr:nth-child(2n+1)>td,.table-striped-black tbody>tr:nth-child(2n+1)>th{
	background-color:#333
}
.table-striped-white tbody>tr:nth-child(2n+1)>td,.table-striped-white tbody>tr:nth-child(2n+1)>th{
	background-color:rgba(102,128,153,.05)
}*/

table caption+thead tr:first-child th,table caption+thead tr:first-child td,table colgroup+thead tr:first-child th,table colgroup+thead tr:first-child td,table thead:first-child tr:first-child th,table thead:first-child tr:first-child td{
	border-top:0;
}
table tbody+tbody{
	border-top:2px solid #ddd;
}
table caption+thead tr:first-child th,table caption+tbody tr:first-child th,table caption+tbody tr:first-child td,table colgroup+thead tr:first-child th,table colgroup+tbody tr:first-child th,table colgroup+tbody tr:first-child td,table thead:first-child tr:first-child th,table tbody:first-child tr:first-child th,table tbody:first-child tr:first-child td{
	border-top:0;
}
table thead:first-child tr:first-child>th:first-child,table tbody:first-child tr:first-child>td:first-child{
	-webkit-border-top-left-radius:4px;
	border-top-left-radius:4px;
	-moz-border-radius-topleft:4px
}
table thead:first-child tr:first-child>th:last-child,table tbody:first-child tr:first-child>td:last-child{
	-webkit-border-top-right-radius:4px;
	border-top-right-radius:4px;
	-moz-border-radius-topright:4px
}
table thead:last-child tr:last-child>th:first-child,table tbody:last-child tr:last-child>td:first-child,table tfoot:last-child tr:last-child>td:first-child{
	-webkit-border-bottom-left-radius:4px;
	border-bottom-left-radius:4px;
	-moz-border-radius-bottomleft:4px
}
table thead:last-child tr:last-child>th:last-child,table tbody:last-child tr:last-child>td:last-child,table tfoot:last-child tr:last-child>td:last-child{
	-webkit-border-bottom-right-radius:4px;
	border-bottom-right-radius:4px;
	-moz-border-radius-bottomright:4px
}
table tfoot+tbody:last-child tr:last-child td:first-child{
	-webkit-border-bottom-left-radius:0;
	border-bottom-left-radius:0;
	-moz-border-radius-bottomleft:0
}
table tfoot+tbody:last-child tr:last-child td:last-child{
	-webkit-border-bottom-right-radius:0;
	border-bottom-right-radius:0;
	-moz-border-radius-bottomright:0
}
table caption+thead tr:first-child th:first-child,table caption+tbody tr:first-child td:first-child,table colgroup+thead tr:first-child th:first-child,table colgroup+tbody tr:first-child td:first-child{
	-webkit-border-top-left-radius:4px;
	border-top-left-radius:4px;
	-moz-border-radius-topleft:4px
}
table caption+thead tr:first-child th:last-child,table caption+tbody tr:first-child td:last-child,table colgroup+thead tr:first-child th:last-child,table colgroup+tbody tr:first-child td:last-child{
	-webkit-border-top-right-radius:4px;
	border-top-right-radius:4px;
	-moz-border-radius-topright:4px
}



/**************************** Separation ************************/

.clearfix:after {visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}
.clearfix{zoom:1;}
body .hide{display:none;}
.left,.right{display:inline;}
.left{float:left;}
.right{float:right;}


/***********default settings**********/
body {font-family: "Helvetica Neue", "Helvetica", "微软雅黑","Arial","Helvetica","sans-serif";font-size:16px;}
a {color:#4A75B5;text-decoration:none;outline:none;}
a:hover {text-decoration:underline}
a.external {padding-right:13px;background:url('../images/icons.gif') no-repeat right 1px;}
a.external:hover {background-position:right -15px;}
.entry-title,.entry-title a {font-size:30px;font-weight:bold;margin-bottom:6px;color:#000;text-align:center;word-wrap: break-word;}
.entry-title a:hover {text-decoration:none;}
.entry-date {text-align:center;color:#999;margin-bottom:60px;font-size:14px;}

h2 {font-size:22px;font-weight:bold;margin:35px auto 25px;border-bottom: 2px solid #eee;line-height: 1.7;}
h3 {font-size:18px;font-weight:bold;margin-bottom:25px;}
h4,h5,h6 {font-weight:bold;margin-bottom:15px;}
p {margin-bottom:25px;line-height:1.8em;text-align:justify;word-wrap:break-word;}


code {background:#eee;color:#C7254E;border:1px solid #ccc;border-radius:.25em;padding:4px 5px;font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;line-height:14px;font-size:14px;word-wrap:break-word; }
/*
font-family: Monaco,Menlo,Consolas,Microsoft Yahei,"Courier New",monospace;
font-family:"Consolas","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace
font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important
font-family:Menlo,Consolas,"Courier New",Courier,"Liberation Mono",monospace
*/
pre {background:#474949;padding:15px;overflow:auto;margin-bottom:20px;margin-top:-10px;color:#D1D9E1;max-height: 600px;line-height: normal;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:14px;border: 1px solid #eee;-webkit-border-radius: 4px 4px 4px 4px;-moz-border-radius: 4px 4px 4px 4px;border-radius: 4px 4px 4px 4px;}
h4+pre, h3+pre { margin-top:20px; }

pre ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
pre ::selection { background:#FF5E99; color:#fff; text-shadow: none; }

pre code{color:#F8F8F2;background-color:transparent;border:none;padding:0;word-wrap:normal;white-space:pre-wrap;word-break:break-all;word-wrap: break-word;font-family:inherit;}
pre ol{margin-left:35px;list-style-type:decimal;}

pre code span.lineno {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  -o-user-select: none;
  user-select: none;
  
  content: counter(lines); text-align: right;
  display: inline-block; width: auto;
  padding-right: 0.5em; margin-right: 0.5em;
  color: #BBB; border-right: solid 1px;
}

/************layout style*****************/
#content {width:1100px;margin:90px auto 60px;min-height:400px;height:auto !important;height:400px;}


/****************entry style**************/
.sidenav {width:240px; background:#fff; float:right; padding:20px; margin-bottom:40px; box-shadow:0 1px 4px #ccc;}
.sidenav h2 {font-size:18px; color:#333; margin:0px auto 15px;}
.sidenav ul {margin-bottom: 0px;}
.sidenav li {margin-bottom:12px; word-break: break-all;}
.sidenav li:last-child { margin-bottom:5px;}
.sidenav a {color:#555; font-size:14px; display:block;}
.entry{margin-bottom:20px;width:720px; float:left; background:#fff; padding:30px; box-shadow:0 2px 6px #ccc;}
/* background: rgba(199, 237, 204,1); */
.entry ul{margin-bottom:25px;margin-left:25px;}
.entry p+ul {margin-top:-20px;}
.entry ul li{margin-bottom:5px;list-style:disc;line-height:1.8em;}
.entry ol{margin:20px auto 20px 35px;}
.entry ol li{margin-bottom:5px;list-style-type:decimal;line-height:1.5em;}
.entry blockquote{margin-left:25px;font-size:14px;font-style:normal;}
.entry img{max-width:97%;/*690px;*/display:block;margin:10px auto;}

.index-content .aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    max-width: 500px;
    background:#000;
    box-shadow:inset -1px 0 0 rgba(0,0,0,0.3);
    background-size:cover;
    background-position:50% 50%;
}
.blog .aside{
    background-image:url(../images/0*cF2i1ZosSP_UTJig.jpeg);
}
.opinion .aside{
    background-image:url(../images/june-2013.CaUUbO2jIECgCmldhmxCCA.jpg);
}
.project .aside{
    background-image:url('../images/0*kTUZamBulGQZg1MW.jpeg')
}
.index-content .section { margin-left:30%; padding-top:80px; padding-right:15%; ;}

.index-content .artical-list { width:70%; margin:0 auto; }
.index-content .artical-list li { margin-bottom:70px; }
.index-content h2 { font-size:20px; margin-bottom:15px; word-break: break-all;}
.index-content h2 a { color:#444 }
.index-content h2 a:hover { color:#E50053; text-decoration:none; }
.index-content .title-desc {color:#999;font-size:14px;line-height:1.6em;}

.index-content .artical-cate { width:70%; margin:0 auto; }
.index-content .artical-cate li { display:inline-block; *float:left; zoom:1; font-size:18px; width:32%; cursor:pointer; }
.index-content .artical-cate li a,
.index-content .artical-cate li a:visited { display:inline-block; zoom:1; color:#000; width:100%; }
.index-content .artical-cate li a:hover { text-decoration:none; }
.index-content .artical-cate li.on span{ color:red; }

.index-content .cate-bar { height:3px; width:70%; margin:0 auto;margin-bottom:100px; }
.index-content #cateBar { display:inline-block; zoom:1; height:3px; background:red; position:relative; width:0; }

/***************Wiki Style*****************/
.wiki h2{cursor:pointer;}
.wiki ul{margin-left:30px;margin-bottom:20px;list-style:disc}
.wiki ul li{margin-bottom:5px;}
.wiki ul ul{list-style:circle;margin-top:10px;margin-bottom:10px;}

/***************label style*************/
#content .pageInfo {
	font-size: .85em;
	margin: 20px auto 10px;
	height: 28px;
	line-height: 28px;
	color: #9FA3A7;
	border-bottom: dotted 1px #D8D8D8;
}
#content .pageInfo .point {
	background: transparent;
	margin: 0 5px;
}
#content .pageInfo .comment {
	float: right;
	padding-left: 10px;
	border-left: solid 1px #E0E0E0;
	height: 18px;
	margin-top: 5px;
	line-height: 18px;
}
#content .pageTag {
	font-size: .85em;
	margin-bottom: 25px;
	display: block;
}
#content .pageTag a {
	background: rgb(67, 145, 234);
	color: #fff;
	padding: 0px 5px;
	margin: 1px auto;
	line-height: 24px;
	display: inline-block;
	text-decoration: none;
}
#content .pageTag a:hover {
	opacity: .8;
	filter: alpha(opacity=80);
	transition: .3s;
}

footer p.meta {
	margin-top: 30px;
	margin-bottom: auto;
	font-size: .85em;
	line-height: 1.8em;
	clear: both;
	overflow: hidden;
}
.basic-alignment.left {
	float: left;
	margin-right: 1.5em;
}
.basic-alignment.right {
	float: right;
	margin-left: 1.5em;
}

/***************comment style*************/
#comments_container {
	font-size:12px;
	border-top: 5px solid rgba(21,25,25,0.8);
	padding-top: .8em;
}
#comments_container a.comment, a.comment_ {
	display: inline;
	padding: .3em .7em .3em;
	margin-right: 10px;
	font-size:14px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	background-color: rgb(67, 145, 234);
}
#comments_container a.actived {
	background-color: #ED5565;
}
#comments_container a.comment:hover, a.comment_:hover {
	text-decoration: none;
	transition: .3s;
	background-color: #ED5565;
}
#comments_container ul {
	padding-top: 7px;
	margin-top: auto;
}
#comments_container li {
	float: left;
	list-style: none;
}
div.hideDivElement {
	display: none;
}
h3.about {color:#777;margin-top:20px;font-size:22px;margin-bottom:10px}
.about-link a {margin-right:10px;font-weight:bold;font-style:italic;font-size:13px;color:#E50053}


/**************目录导航**************/
#menuIndex {overflow:auto;}
#menuIndex a {display:block; padding:2px 0; }
#menuIndex a:hover {color:#ea6753;text-decoration:none;}
#menuIndex ul {margin-bottom:0px;}
#menuIndex ul li{font-size:12px;margin-bottom:5px;word-wrap:break-word;padding-left:10px;}
#menuIndex ul li:last-child {margin-bottom:0px;}
#menuIndex ul li.on{background-color:#eee;}
#menuIndex li.h1{font-size:14px;font-weight:bold;padding-left:0;margin-bottom:10px;}
#menuIndex li.h3{padding-left:25px;}

.home-menu { position:fixed; top:15px; left:15px; z-index:5; font-size:0; }
.home-menu-icon { line-height:38px; padding:0 8px; display:inline-block; color:#fff; font-size:18px;  background:#000; }
.home-follow { margin-left:2px; line-height:38px; padding:0 8px; display:inline-block; color:#fff; font-size:18px; background:#000;  }
.home-menu-icon:hover,
.home-follow:hover { color:#fff; text-decoration:none; }
.home-contact { color:#fff; margin-top:2px; background:#000; padding:8px 0 7px; text-align:center; display:none;}
.home-contact a { width:30px; display:inline-block; }
.home-contact img { width:18px; }

/***** sidebar for scroll top-bottom ******/
.scroll-top-down {
width: 75px;
position: fixed;
top: 40%;
right: -5px;
text-align: center;
}
.scroll-top-down div {
margin-bottom: 5px;
}
.scroll-top-down i {
font-size: 40px;
color: #000;
cursor: pointer;
}
.scroll-top-down i.icon-comments-o {
font-size: 39px;
}
.icon-chevron-circle-up { /*兼容ie6、7*/
	*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf139;');
}
.icon-chevron-circle-down {
	*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf13a;');
}
.icon-comments-o {
	*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0e6;');
}

@media screen and (max-width: 750px){
    body {font-size:14px;}
    #content {width:85%;margin:100px auto 50px; }

    h2{font-size:20px;}
    h3{font-size:16px;}
    embed {display:none;}

    .entry-title,.entry-title a {font-size:24px;}
    .entry-date {margin-bottom:40px;}
    .entry img{max-width:90%;}
    .entry pre ol li{margin-bottom:0;line-height:1em;}
    .entry pre code{line-height:1em;font-size:12px;}
    .sidenav {display:none;}
    .entry {float:none;width:auto;background:transparent;padding:0;box-shadow:none;}

    .index-content .aside { position:relative; width:100%; height:300px; max-width:none; }
    .index-content .section { margin-left:0; padding-right:0; }
    .index-content .section ul { width:85%; }
    .index-content .cate-bar { width:85%; }
    .index-content .artical-cate { margin-top:50px; }

    .blog .aside,
    .project .aside,
    .opinion .aside {display:none;background-image:none;}
}

@media (max-width: 1020px){
    #menuIndex {display:none;}
    .home-menu { position:absolute; }
    .index-content .cate-bar ,
    .index-content .artical-list,
    .index-content .artical-cate { width:85%; }
    .sidenav {display:none;}
    .entry {float:none;width:auto;background:transparent;padding:0;box-shadow:none;}
    #content {width:85%;margin:100px auto 50px; }
}
@media (max-width: 1300px){
    .home-menu { position:absolute; }
}
